package com.lukebang.service;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;

import com.lukebang.pojo.Good;
import com.lukebang.pojo.Worker;

/**
 * 
 * IInstallIndentService 上午11:16:59
 * 
 * Copyright zhaocj Inc. All rights reserved. Love ME Like Justin Bieber.
 */
public interface IInstallIndentService{
	public Map<String, Object> selectInstallIndentByMerchant(HttpSession session, String cuName, String cuPhone,
			String indentID, String subscribeTimeBegin, String subscribeTimeEnd, String beginTimeBegin,
			String beginTimeEnd, Integer indentStatus, Integer offset, Integer limit, String sort, String order);

	
	public Map<String, Object> insertInstallIndent(HttpServletRequest request, String phone, String name, String remark,
			String installAddress, String province, String city, String country, String subscribeTime,
			Integer isNeedTakeGoods, String pickupPhone, String pickupProvince, String pickupCity, String pickupCountry,
			String pickAddress, String fakeIndentID, HttpSession session);

//	public boolean modifyForPayInstallIndent(HttpServletRequest request, Integer indentID, Double addPrice,
//			Integer relievedBao, Integer crampetNumber, Integer fourClawNumber, Integer motorNumber,Double totalPrice,
//			HttpSession session);
	
	//在已有订单中添加商品
	public void insertGoodsThatExistIndent(Integer indentID, Good good, String finishShade,
			String clothShade, String yarnShade, String headShade,HttpServletRequest request,String fakeIndentID, HttpSession session);
	// 删除商品后重新计算价格
	public Map<String, Object> resetCalculateIndent(Integer indentID);
}
